<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
    <head>
        <meta charset="UTF-8">
        <title></title>
    </head>
    <body>
<?php
include_once ('../includes/utilidades.php');
include_once ('../includes/html.php');

//include_once('../includes/config.php');
session_start();
/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
    
//print_r($_SESSION);
//$actual = $_SERVER['REQUEST_SCHEME'] . "://" . $_SERVER['SERVER_NAME'] . $_SERVER['PHP_SELF'] . "?" . $_SERVER['QUERY_STRING'];
//$_SESSION['afterAdd']['rpruebajornada'] = $actual;

print "<h1>" . $_SESSION['estado']['temporada'][0]['nombre'] ."</h1>";
print "<h2>" . $_SESSION['estado']['competicion'][0]['nombre']  ."</h2>";
print "<h3>" . $_SESSION['estado']['jornada'][0]['nombre'] . " " . $_SESSION['estado']['jornada'][0]['fecha'] ."</h3>";

$arrayvalores['idjornada']=$_SESSION['estado']['jornada'][0]['id'];

print "<h1> Nueva prueba </h1>";

$objeto='rpruebajornada';
//HTMLFormTablaAdd($objeto,$_SESSION['estado'],$tablas);
//HTMLFormTablaAction($objeto, $tablas[$objeto], 'doAltaPruebaJornada.php',$arrayvalores);

$form = new HTML_Form($objeto, $objeto, 'doAltaPruebaJornada.php');
$form->setEstado($_SESSION['estado']);
$form->setValores($arrayvalores);
$form->setModeloDatos($tablas);
$form->toHTMLTable();
$form->printHTML();
//print session_id();
//print $_SESSION['afterAddcompeticion']
?>
    </body>
</html>
